/*
 * @Author: lrqnew
 * @Date: 2023-02-10 11:26:59
 * @LastEditors: 李瑞清 alger_li@163.com
 * @LastEditTime: 2023-05-25 11:09:23
 * @FilePath: \oms\scprit\oms\store\account.js
 * @Description: 
 */
define(["jquery", "bbcare", "oms_model/account", "oms_store/store"], function ($, $bb, Account, $base) {
	var defaults = {}, store = {}
	var followup = $bb.baseUrl("followup")
	defaults.url = {
		login: "/oms/auth/login"
	}

	/**
	 * 系统登录
	 */
	store.login = function (data, callback) {
		$.post(defaults.url.login, data, function (ret) {
			if ($base.filter(ret, callback)) {
				callback(true, ret.data, data)
			}
		}).error(function (jqXHR) {
			$base.error(jqXHR.status, jqXHR.msg, callback, data)
		})
	}

	return store
})
